package com.freewater.springboot.demo.aop.introduction;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class AppConfig {

    @Bean
    public BusinessService businessService() {
        return new DefaultBusinessService();
    }

    @Bean
    public OtherService otherService() {
        return new DefaultOtherService();
    }

    @Bean
    public UsageTrackingAspect usageTrackingAspect() {
        return new UsageTrackingAspect();
    }
}
